<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="pollen_v1.html">Pollen API</a> . <a href="pollen_v1.forecast.html">forecast</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#lookup">lookup(days=None, languageCode=None, location_latitude=None, location_longitude=None, pageSize=None, pageToken=None, plantsDescription=None, x__xgafv=None)</a></code></p>
<p class="firstline">Returns up to 5 days of daily pollen information in more than 65 countries, up to 1km resolution.</p>
<p class="toc_element">
  <code><a href="#lookup_next">lookup_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="lookup">lookup(days=None, languageCode=None, location_latitude=None, location_longitude=None, pageSize=None, pageToken=None, plantsDescription=None, x__xgafv=None)</code>
  <pre>Returns up to 5 days of daily pollen information in more than 65 countries, up to 1km resolution.

Args:
  days: integer, Required. A number that indicates how many forecast days to request (minimum value 1, maximum value is 5).
  languageCode: string, Optional. Allows the client to choose the language for the response. If data cannot be provided for that language, the API uses the closest match. Allowed values rely on the IETF BCP-47 standard. The default value is &quot;en&quot;.
  location_latitude: number, The latitude in degrees. It must be in the range [-90.0, +90.0].
  location_longitude: number, The longitude in degrees. It must be in the range [-180.0, +180.0].
  pageSize: integer, Optional. The maximum number of daily info records to return per page. The default and max value is 5, indicating 5 days of data.
  pageToken: string, Optional. A page token received from a previous daily call. It is used to retrieve the subsequent page. Note that when providing a value for the page token, all other request parameters provided must match the previous call that provided the page token.
  plantsDescription: boolean, Optional. Contains general information about plants, including details on their seasonality, special shapes and colors, information about allergic cross-reactions, and plant photos. The default value is &quot;true&quot;.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  &quot;dailyInfo&quot;: [ # Required. This object contains the daily forecast information for each day requested.
    { # This object contains the daily forecast information for each day requested.
      &quot;date&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date in UTC at which the pollen forecast data is represented.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      &quot;plantInfo&quot;: [ # This list will include up to 15 pollen species affecting the location specified in the request.
        { # This object contains the daily information on specific plant.
          &quot;code&quot;: &quot;A String&quot;, # The plant code name. For example: &quot;COTTONWOOD&quot;. A list of all available codes could be found here.
          &quot;displayName&quot;: &quot;A String&quot;, # A human readable representation of the plant name. Example: “Cottonwood&quot;.
          &quot;inSeason&quot;: True or False, # Indication of either the plant is in season or not.
          &quot;indexInfo&quot;: { # This object contains data representing specific pollen index value, category and description. # This object contains data representing specific pollen index value, category and description.
            &quot;category&quot;: &quot;A String&quot;, # Text classification of index numerical score interpretation. The index consists of six categories: * 0: &quot;None&quot; * 1: &quot;Very low&quot; * 2: &quot;Low&quot; * 3: &quot;Moderate&quot; * 4: &quot;High&quot; * 5: &quot;Very high
            &quot;code&quot;: &quot;A String&quot;, # The index&#x27;s code. This field represents the index for programming purposes by using snake cases instead of spaces. Example: &quot;UPI&quot;.
            &quot;color&quot;: { # Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor&#x27;s `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn&#x27;t have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&amp;red green:&amp;green blue:&amp;blue alpha:&amp;alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha &lt;= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!(&#x27;alpha&#x27; in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(&#x27;,&#x27;); return [&#x27;rgba(&#x27;, rgbParams, &#x27;,&#x27;, alphaFrac, &#x27;)&#x27;].join(&#x27;&#x27;); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red &lt;&lt; 16) | (green &lt;&lt; 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = [&#x27;#&#x27;]; for (var i = 0; i &lt; missingZeros; i++) { resultBuilder.push(&#x27;0&#x27;); } resultBuilder.push(hexString); return resultBuilder.join(&#x27;&#x27;); }; // ... # The color used to represent the Pollen Index numeric score.
              &quot;alpha&quot;: 3.14, # The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0).
              &quot;blue&quot;: 3.14, # The amount of blue in the color as a value in the interval [0, 1].
              &quot;green&quot;: 3.14, # The amount of green in the color as a value in the interval [0, 1].
              &quot;red&quot;: 3.14, # The amount of red in the color as a value in the interval [0, 1].
            },
            &quot;displayName&quot;: &quot;A String&quot;, # A human readable representation of the index name. Example: &quot;Universal Pollen Index&quot;.
            &quot;indexDescription&quot;: &quot;A String&quot;, # Textual explanation of current index level.
            &quot;value&quot;: 42, # The index&#x27;s numeric score. Numeric range is between 0 and 5.
          },
          &quot;plantDescription&quot;: { # Contains general information about plants, including details on their seasonality, special shapes and colors, information about allergic cross-reactions, and plant photos. # Contains general information about plants, including details on their seasonality, special shapes and colors, information about allergic cross-reactions, and plant photos.
            &quot;crossReaction&quot;: &quot;A String&quot;, # Textual description of pollen cross reaction plants. Example: Alder, Hazel, Hornbeam, Beech, Willow, and Oak pollen.
            &quot;family&quot;: &quot;A String&quot;, # A human readable representation of the plant family name. Example: &quot;Betulaceae (the Birch family)&quot;.
            &quot;picture&quot;: &quot;A String&quot;, # Link to the picture of the plant.
            &quot;pictureCloseup&quot;: &quot;A String&quot;, # Link to a closeup picture of the plant.
            &quot;season&quot;: &quot;A String&quot;, # Textual list of explanations of seasons where the pollen is active. Example: &quot;Late winter, spring&quot;.
            &quot;specialColors&quot;: &quot;A String&quot;, # Textual description of the plants&#x27; colors of leaves, bark, flowers or seeds that helps identify the plant.
            &quot;specialShapes&quot;: &quot;A String&quot;, # Textual description of the plants&#x27; shapes of leaves, bark, flowers or seeds that helps identify the plant.
            &quot;type&quot;: &quot;A String&quot;, # The plant&#x27;s pollen type. For example: &quot;GRASS&quot;. A list of all available codes could be found here.
          },
        },
      ],
      &quot;pollenTypeInfo&quot;: [ # This list will include up to three pollen types (GRASS, WEED, TREE) affecting the location specified in the request.
        { # This object contains the pollen type index and health recommendation information on specific pollen type.
          &quot;code&quot;: &quot;A String&quot;, # The pollen type&#x27;s code name. For example: &quot;GRASS&quot;
          &quot;displayName&quot;: &quot;A String&quot;, # A human readable representation of the pollen type name. Example: &quot;Grass&quot;
          &quot;healthRecommendations&quot;: [ # Textual list of explanations, related to health insights based on the current pollen levels.
            &quot;A String&quot;,
          ],
          &quot;inSeason&quot;: True or False, # Indication whether the plant is in season or not.
          &quot;indexInfo&quot;: { # This object contains data representing specific pollen index value, category and description. # Contains the Universal Pollen Index (UPI) data for the pollen type.
            &quot;category&quot;: &quot;A String&quot;, # Text classification of index numerical score interpretation. The index consists of six categories: * 0: &quot;None&quot; * 1: &quot;Very low&quot; * 2: &quot;Low&quot; * 3: &quot;Moderate&quot; * 4: &quot;High&quot; * 5: &quot;Very high
            &quot;code&quot;: &quot;A String&quot;, # The index&#x27;s code. This field represents the index for programming purposes by using snake cases instead of spaces. Example: &quot;UPI&quot;.
            &quot;color&quot;: { # Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor&#x27;s `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn&#x27;t have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&amp;red green:&amp;green blue:&amp;blue alpha:&amp;alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha &lt;= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!(&#x27;alpha&#x27; in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(&#x27;,&#x27;); return [&#x27;rgba(&#x27;, rgbParams, &#x27;,&#x27;, alphaFrac, &#x27;)&#x27;].join(&#x27;&#x27;); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red &lt;&lt; 16) | (green &lt;&lt; 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = [&#x27;#&#x27;]; for (var i = 0; i &lt; missingZeros; i++) { resultBuilder.push(&#x27;0&#x27;); } resultBuilder.push(hexString); return resultBuilder.join(&#x27;&#x27;); }; // ... # The color used to represent the Pollen Index numeric score.
              &quot;alpha&quot;: 3.14, # The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0).
              &quot;blue&quot;: 3.14, # The amount of blue in the color as a value in the interval [0, 1].
              &quot;green&quot;: 3.14, # The amount of green in the color as a value in the interval [0, 1].
              &quot;red&quot;: 3.14, # The amount of red in the color as a value in the interval [0, 1].
            },
            &quot;displayName&quot;: &quot;A String&quot;, # A human readable representation of the index name. Example: &quot;Universal Pollen Index&quot;.
            &quot;indexDescription&quot;: &quot;A String&quot;, # Textual explanation of current index level.
            &quot;value&quot;: 42, # The index&#x27;s numeric score. Numeric range is between 0 and 5.
          },
        },
      ],
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # Optional. The token to retrieve the next page.
  &quot;regionCode&quot;: &quot;A String&quot;, # The ISO_3166-1 alpha-2 code of the country/region corresponding to the location provided in the request. This field might be omitted from the response if the location provided in the request resides in a disputed territory.
}</pre>
</div>

<div class="method">
    <code class="details" id="lookup_next">lookup_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

</body></html>